package models

import (
	"gorm.io/gorm"
	"time"
)

type Danmus struct {
	Id        uint           `gorm:"column:id;type:bigint(22);primaryKey;not null;" json:"id"`
	Danmu     string         `gorm:"column:danmu;type:varchar(200);not null;" json:"danmu"`
	Count     uint           `gorm:"column:count;type:int(11);not null;" json:"count"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
}
